package s;
public class S {
    // private :只能自己访问
    // public: 所有类都可以访问
    public String name;
    private double money;




    public S() {
//        System.out.println("S的无参构造器");
    }

    public S(String name) {
        this.name = name;
    }

    public S(String name, double money) {
        this.name = name;
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }
}